package kr.hkit.powerjava.chapter08.work;

class Movie {
	private String title, director, actors;
//	1.각 필드에 대한 접근자와 설정자 작성
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public String getActors() {
		return actors;
	}

	public void setActors(String actors) {
		this.actors = actors;
	}
}

public class MovieTest {
	public static void main(String[] args) {
		Movie m = new Movie();
		m.setTitle("Transformer");	//4. title속성을 transformer로 변경
		System.out.println(m.getTitle());

	}
}
